package com.zwq.pojo.dto;

import com.zwq.pojo.entity.User;
import org.springframework.beans.BeanUtils;

public class UserDto extends User {

    public static UserDto convertBy(User user) {
        UserDto dto = new UserDto();
        BeanUtils.copyProperties(user, dto);
        return dto;
    }
}
